package view.rules.components;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class FeatureFrame extends JFrame {
	
	private JPanel featuresPanel;
	private static FeatureFrame instance;
	private String pos;
	
	private FeatureFrame(){
		setSize(500, 500);
		setVisible(true);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		featuresPanel = new FeaturePanel();
		((FeaturePanel) featuresPanel).setPos(pos);
		add(featuresPanel);
	}
	
	public static FeatureFrame getInstance(){
		instance = new FeatureFrame();
		
		return instance;
	}

	public String getPos() {
		return pos;
	}

	public void setPos(String pos) {
		this.pos = pos;
	}
	
	

}
